
/**
 * ======================================================================
 * 【基本说明】：
 *  解析emoji数据
 *
 * Created by Major_ on 18-7-5.
 * ======================================================================
 */
function vodChangeUrl2Local(match) {
    var code = '';
    switch (match) {
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f004.png">':
            code = match.replace(match, '[u1f004]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f30f.png">':
            code = match.replace(match, '[u1f30f]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f319.png">':
            code = match.replace(match, '[u1f319]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f332.png">':
            code = match.replace(match, '[u1f332]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f339.png">':
            code = match.replace(match, '[u1f339]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f33b.png">':
            code = match.replace(match, '[u1f33b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f349.png">':
            code = match.replace(match, '[u1f349]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f356.png">':
            code = match.replace(match, '[u1f356]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f35a.png">':
            code = match.replace(match, '[u1f35a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f366.png">':
            code = match.replace(match, '[u1f366]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f36b.png">':
            code = match.replace(match, '[u1f36b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f377.png">':
            code = match.replace(match, '[u1f377]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f37b.png">':
            code = match.replace(match, '[u1f37b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f381.png">':
            code = match.replace(match, '[u1f381]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f382.png">':
            code = match.replace(match, '[u1f382]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f384.png">':
            code = match.replace(match, '[u1f384]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f389.png">':
            code = match.replace(match, '[u1f389]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f393.png">':
            code = match.replace(match, '[u1f393]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f3a4.png">':
            code = match.replace(match, '[u1f3a4]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f3b2.png">':
            code = match.replace(match, '[u1f3b2]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f3b5.png">':
            code = match.replace(match, '[u1f3b5]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f3c0.png">':
            code = match.replace(match, '[u1f3c0]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f3c2.png">':
            code = match.replace(match, '[u1f3c2]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f3e1.png">':
            code = match.replace(match, '[u1f3e1]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f434.png">':
            code = match.replace(match, '[u1f434]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f436.png">':
            code = match.replace(match, '[u1f436]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f437.png">':
            code = match.replace(match, '[u1f437]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f44a.png">':
            code = match.replace(match, '[u1f44a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f44c.png">':
            code = match.replace(match, '[u1f44c]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f44d.png">':
            code = match.replace(match, '[u1f44d]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f44e.png">':
            code = match.replace(match, '[u1f44e]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f44f.png">':
            code = match.replace(match, '[u1f44f]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f451.png">':
            code = match.replace(match, '[u1f451]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f46a.png">':
            code = match.replace(match, '[u1f46a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f46b.png">':
            code = match.replace(match, '[u1f46b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f47b.png">':
            code = match.replace(match, '[u1f47b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f47c.png">':
            code = match.replace(match, '[u1f47c]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f47d.png">':
            code = match.replace(match, '[u1f47d]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f47f.png">':
            code = match.replace(match, '[u1f47f]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f484.png">':
            code = match.replace(match, '[u1f484]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f48a.png">':
            code = match.replace(match, '[u1f48a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f48b.png">':
            code = match.replace(match, '[u1f48b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f48d.png">':
            code = match.replace(match, '[u1f48d]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f494.png">':
            code = match.replace(match, '[u1f494]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4a1.png">':
            code = match.replace(match, '[u1f4a1]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4a2.png">':
            code = match.replace(match, '[u1f4a2]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4a3.png">':
            code = match.replace(match, '[u1f4a3]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4a4.png">':
            code = match.replace(match, '[u1f4a4]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4a9.png">':
            code = match.replace(match, '[u1f4a9]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4aa.png">':
            code = match.replace(match, '[u1f4aa]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4b0.png">':
            code = match.replace(match, '[u1f4b0]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4da.png">':
            code = match.replace(match, '[u1f4da]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4de.png">':
            code = match.replace(match, '[u1f4de]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f4e2.png">':
            code = match.replace(match, '[u1f4e2]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f525.png">':
            code = match.replace(match, '[u1f525]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f52b.png">':
            code = match.replace(match, '[u1f52b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f556.png">':
            code = match.replace(match, '[u1f556]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f600.png">':
            code = match.replace(match, '[u1f600]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f601.png">':
            code = match.replace(match, '[u1f601]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f602.png">':
            code = match.replace(match, '[u1f602]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f603.png">':
            code = match.replace(match, '[u1f603]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f605.png">':
            code = match.replace(match, '[u1f605]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f606.png">':
            code = match.replace(match, '[u1f606]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f607.png">':
            code = match.replace(match, '[u1f607]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f608.png">':
            code = match.replace(match, '[u1f608]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f609.png">':
            code = match.replace(match, '[u1f609]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f60a.png">':
            code = match.replace(match, '[u1f60a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f60b.png">':
            code = match.replace(match, '[u1f60b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f60c.png">':
            code = match.replace(match, '[u1f60c]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f60d.png">':
            code = match.replace(match, '[u1f60d]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f60e.png">':
            code = match.replace(match, '[u1f60e]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f60f.png">':
            code = match.replace(match, '[u1f60f]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f611.png">':
            code = match.replace(match, '[u1f611]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f612.png">':
            code = match.replace(match, '[u1f612]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f613.png">':
            code = match.replace(match, '[u1f613]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f614.png">':
            code = match.replace(match, '[u1f614]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f615.png">':
            code = match.replace(match, '[u1f615]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f616.png">':
            code = match.replace(match, '[u1f616]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f618.png">':
            code = match.replace(match, '[u1f618]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f61a.png">':
            code = match.replace(match, '[u1f61a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f61c.png">':
            code = match.replace(match, '[u1f61c]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f61d.png">':
            code = match.replace(match, '[u1f61d]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f61e.png">':
            code = match.replace(match, '[u1f61e]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f61f.png">':
            code = match.replace(match, '[u1f61f]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f621.png">':
            code = match.replace(match, '[u1f621]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f622.png">':
            code = match.replace(match, '[u1f622]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f623.png">':
            code = match.replace(match, '[u1f623]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f624.png">':
            code = match.replace(match, '[u1f624]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f628.png">':
            code = match.replace(match, '[u1f628]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f629.png">':
            code = match.replace(match, '[u1f629]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f62a.png">':
            code = match.replace(match, '[u1f62a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f62b.png">':
            code = match.replace(match, '[u1f62b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f62c.png">':
            code = match.replace(match, '[u1f62c]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f62d.png">':
            code = match.replace(match, '[u1f62d]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f62e.png">':
            code = match.replace(match, '[u1f62e]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f62f.png">':
            code = match.replace(match, '[u1f62f]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f630.png">':
            code = match.replace(match, '[u1f630]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f631.png">':
            code = match.replace(match, '[u1f631]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f632.png">':
            code = match.replace(match, '[u1f632]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f633.png">':
            code = match.replace(match, '[u1f633]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f634.png">':
            code = match.replace(match, '[u1f634]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f635.png">':
            code = match.replace(match, '[u1f635]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f636.png">':
            code = match.replace(match, '[u1f636]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f637.png">':
            code = match.replace(match, '[u1f637]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f648.png">':
            code = match.replace(match, '[u1f648]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f649.png">':
            code = match.replace(match, '[u1f649]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f64a.png">':
            code = match.replace(match, '[u1f64a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f64f.png">':
            code = match.replace(match, '[u1f64f]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f680.png">':
            code = match.replace(match, '[u1f680]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f6ab.png">':
            code = match.replace(match, '[u1f6ab]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f6b2.png">':
            code = match.replace(match, '[u1f6b2]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u1f6bf.png">':
            code = match.replace(match, '[u1f6bf]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u23f0.png">':
            code = match.replace(match, '[u23f0]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u23f3.png">':
            code = match.replace(match, '[u23f3]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u2600.png">':
            code = match.replace(match, '[u2600]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u2601.png">':
            code = match.replace(match, '[u2601]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u2614.png">':
            code = match.replace(match, '[u2614]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u2615.png">':
            code = match.replace(match, '[u2615]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u261d.png">':
            code = match.replace(match, '[u261d]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u263a.png">':
            code = match.replace(match, '[u263a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u26a1.png">':
            code = match.replace(match, '[u26a1]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u26bd.png">':
            code = match.replace(match, '[u26bd]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u26c4.png">':
            code = match.replace(match, '[u26c4]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u26c5.png">':
            code = match.replace(match, '[u26c5]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u270a.png">':
            code = match.replace(match, '[u270a]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u270b.png">':
            code = match.replace(match, '[u270b]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u270c.png">':
            code = match.replace(match, '[u270c]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u270f.png">':
            code = match.replace(match, '[u270f]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u2744.png">':
            code = match.replace(match, '[u2744]');
            break;
        case '<img style="height: 0.2rem;width: auto;" src="static/img/chatroom/IM_emoji/u2b50.png">':
            code = match.replace(match, '[u2b50]');
            break;
        default:
            
    }
    return code
}
export const vodEmotion2Local = function (richText) {
    richText = richText.replace(/<img[^>]*>/gi, function (match, capture) {
        return vodChangeUrl2Local(match);
    });
    return richText;
}
